package com.smartgame.desktop;


import com.badlogic.gdx.tools.texturepacker.TexturePacker;

/**
 * This is a run-once class for packing atlases.
 * 
 */
public class AtlasesPacker {

	static final String[] SPIDERS_PACKER_PARAMS = {"assets-raw/images/spiders",
		"../android/assets/images", "spiders.pack"};
	
	static final String[] BACKGROUND_PACKER_PARAMS = {"assets-raw/images/background",
		"../android/assets/images", "background.pack"};
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		String[] params = getPackerParamsByResourceTag("background");
		String[] params = getPackerParamsByResourceTag("spiders");
		TexturePacker.process(params[0], params[1], params[2]);

	}
	
	private static String[] getPackerParamsByResourceTag(String tag) {
		if ("spiders".equals(tag)) {
			return SPIDERS_PACKER_PARAMS;
		}
		if ("background".equals(tag)) {
			return BACKGROUND_PACKER_PARAMS;
		}
		throw new RuntimeException("Should not reach here!");
	}

}
